package com.example.blog.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Admin
 */
@Data
@ApiModel("修改用户信息入参类")
public class UpdateUserReqDto {

    @ApiModelProperty(value = "用户id")
    @NotBlank(message = "用户id不能为空")
    private String id;

    @ApiModelProperty(value = "用户昵称")
    @NotBlank(message = "用户名称不能为空")
    private String name;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "用户密码不能为空")
    private String password;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态，0隐藏1启用9删除")
    @NotNull(message = "状态不能为空")
    private Integer status;

}
